home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1997-04-18 | 1.2 KB | 49 lines |
- F$=Fsel$("","","Select an IFF-Picture!","")
- 'F$="dh2:amosgfx/gf2Test3.iff"
- Open In 1,F$
- LE=Lof(1)
- Close 1
- Reserve As Work 9,130+LE
- ST=Start(9)
- Bload F$,ST+130
- Loke ST, Extension_8_0998("GFIF")
- Screen Open 0,320,200,2,0
- Curs Off : Flash Off : Paper 0 : Pen 1
- Input "Author of Level: ";N$
- Locate 0,2 : Print "Enter TG in front!" : Locate 0,1
- Input "Enter Levelname: ";T$
- Poke$ ST+4,N$+Chr$(0)
- 'Doke ST+34,-1
- Doke ST+34,300
- Doke ST+112,-1
- Load Iff F$,0
- Screen Display 0,112,40,336,256
- Wait Vbl : Limit Mouse
- L=92 : Y=0
- Do
- Multi Wait
- MK=Mouse Key : XM=X Screen(X Mouse) : YM=Y Screen(Y Mouse)
- If MK
- If L=108
- Extension_8_1016 0,YM To 351,YM,1
- Repeat : Multi Wait : Until Mouse Key=0
- Loke ST+L,YM : Add L,4
- Else
- Colour 0,$FFF
- Loke ST+L,XM+112 : Loke ST+L+4,YM : Add L,8
- Repeat : Multi Wait : Until Mouse Key=0
- Colour 0,0
- End If
- End If
- Exit If L=112
- I$=Inkey$
- If I$=Cdown$ and Y<Screen Height-256 Then Add Y,8
- If I$=Cup$ and Y>0 Then Add Y,-8
- Screen Offset 0,0,Y
- Loop
- Doke ST+128,Screen Height
- Screen Close 0
- F$=Fsel$("DH1:",T$+".GFB","Enter the target","Levels-Directory")
- If F$="" Then End
- 'Wsave "Dh2:Games/Misc/Levels/"+T$+".GFB",9
- Extension_8_0472 F$,9